package com.csdj.questions.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 文章
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-08
 */
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表Id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 文章Id
     */
    private Integer articleId;

    /**
     * 文章名称
     */
    private String articleName;

    /**
     * 内容中的图片
     */
    private String photo;

    /**
     * 回答次数
     */
    private Integer answerNumb;

    /**
     * 关注次数
     */
    private Integer attentionNumb;

    /**
     * 浏览次数
     */
    private Integer browseNumb;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    /**
     * 点赞数
     */
    private Integer articleTags;

    /**
     * 文章内容
     */
    private String articleContent;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 1关注，2推荐，3热榜
     */
    private Long concerned;

    /**
     * 问题id,关联问题表
     */
    private String quesId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }
    public String getArticleName() {
        return articleName;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public Integer getAnswerNumb() {
        return answerNumb;
    }

    public void setAnswerNumb(Integer answerNumb) {
        this.answerNumb = answerNumb;
    }
    public Integer getAttentionNumb() {
        return attentionNumb;
    }

    public void setAttentionNumb(Integer attentionNumb) {
        this.attentionNumb = attentionNumb;
    }
    public Integer getBrowseNumb() {
        return browseNumb;
    }

    public void setBrowseNumb(Integer browseNumb) {
        this.browseNumb = browseNumb;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public Integer getArticleTags() {
        return articleTags;
    }

    public void setArticleTags(Integer articleTags) {
        this.articleTags = articleTags;
    }
    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Long getConcerned() {
        return concerned;
    }

    public void setConcerned(Long concerned) {
        this.concerned = concerned;
    }
    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }

    @Override
    public String toString() {
        return "Article{" +
            "id=" + id +
            ", articleId=" + articleId +
            ", articleName=" + articleName +
            ", photo=" + photo +
            ", answerNumb=" + answerNumb +
            ", attentionNumb=" + attentionNumb +
            ", browseNumb=" + browseNumb +
            ", createTime=" + createTime +
            ", articleTags=" + articleTags +
            ", articleContent=" + articleContent +
            ", userId=" + userId +
            ", concerned=" + concerned +
            ", quesId=" + quesId +
        "}";
    }
}
